package org.vshe.improve.spring.prospring3.ch5;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class JavaConfigDemo {
	public static void main(String args[]) {
		ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
		MessageRenderer renderer = context.getBean("messageRenderer", MessageRenderer.class);
		renderer.render();
	}
}
